package com.example.dwr.reverseajax;

public class Message
{
  private long id = System.currentTimeMillis();
  private String text;

  public Message(String newtext)
  {
    this.text = newtext;

    if (this.text.length() > 256)
    {
      this.text = this.text.substring(0, 256);
    }
  }

  public long getId()
  {
    return this.id;
  }

  public String getText()
  {
    return this.text;
  }
}